/**
 * Created by Administrator on 2016/10/28.
 */
function people(name,age) {
    this.name=name;
    this.age=age;
}
people.prototype={
    sayHello: function () {
        console.log("name:"+this.name+",age:"+this.age);
    }
}
//此时，people被视为构造函数，可以new实例化
module.exports=people;